﻿@using CYQ.Data.Table
@{
    MDataRow drUser = ViewBag.drUser ?? new MDataRow();
    MDataRow drOrg = ViewBag.drOrg ?? new MDataRow();
    MDataTable dtUser = ViewBag.dtUser ?? new MDataTable();

}




<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>index</title>

    <link href="~/Style/layui/css/layui.css" rel="stylesheet" />
</head>
<body>

    <div class="layui-layout layui-layout-admin">
        <div class="layui-header">

            <span class="layui-nav-bar" style="left: 90.5938px; top: 48px; width: 0px; opacity: 0;"></span>
            <ul class="layui-nav layui-layout-right" lay-filter="layadmin-layout-right">

          
                <li class="layui-nav-item" lay-unselect="">
                    
                    <a href="javascript:;"><img src="~/Style/pic/u=2942148496,1192179502&fm=26&gp=0.jpg" class="layui-nav-img" />@drOrg.Get("Orgname", "") - @drUser.Get("username", "")</a>
                    <dl class="layui-nav-child">
                        <dd><a href="/user/modify?usercode=@drUser.Get("usercode","")">修改信息</a></dd>
                        <dd><a href="/user/modifypwd?usercode=@drUser.Get("usercode","")">修改密码</a></dd>
                        <hr class="layui-bg-red">
                        <dd layadmin-event="logout" style="text-align: center"><a href="/home/login">换个号</a></dd>
                    </dl>
                </li>
            </ul>
        </div>


    </div>

    <div class="layui-col-md6">
        <div class="layui-card">
            <div class="layui-card-header">全部用户信息-<button type="button" class="adduser layui-btn layui-btn-sm">增加</button></div></div>
            <div class="layui-card-body">
                <table class="layui-table "  id="test">
                    <tbody>
                        <tr>
                            <th>用户编码</th>
                            <th>用户名称</th>
                            <th>手机号</th>
                            <th>生日</th>
                           
                            <th>邮箱</th>
                            <th>地址</th>
                            <th>QQ</th>
                        </tr>
                    <tr>
                        @{
                            foreach (var drUserRow in dtUser.Rows)
                            {
                                <td>@drUserRow.Get("usercode","")</td>
                                <td>@drUserRow.Get("username", "")</td>
                                <td>@drUserRow.Get("cellphone","")</td>
                                <td>@drUserRow.Get("birthdate","")</td>
                                <td>@drUserRow.Get("email","")</td>
                                <td>@drUserRow.Get("address","")</td>
                                <td>@drUserRow.Get("qq","")</td>
                            }
                        }
                      
                    </tr>
                   
                    </tbody>
                </table>
       
            </div>
        </div>
     
    

    <div class="layui-col-md6">
        <div class="layui-card">
            <div class="layui-card-header">配置方案-调整前</div>
            <div class="layui-card-body">
                <table class="layui-table ">
                    <tbody>
                        <tr>
                            <th colspan="2">标准方案比例饼图</th>
                        </tr>
                        <tr>
                            <td>核心资产</td>
                            <td>50%</td>
                        </tr>
                        <tr>
                            <td>基础资产</td>
                            <td>30%</td>
                        </tr>
                        <tr>
                            <td>策略资产</td>
                            <td>20%</td>
                        </tr>
                    </tbody>
                </table>
              
            </div>
        </div>

    </div>
    <div class="layui-col-md6">
        <div class="layui-card">
            <div class="layui-card-header">配置方案-调整前</div>
            <div class="layui-card-body">
                <table class="layui-table ">
                    <tbody>
                        <tr>
                            <th >标准方案比例饼图</th>
                        </tr>
                        <tr>
                            <td>核心资产</td>
                            <td>50%</td>
                        </tr>
                        <tr>
                            <td>基础资产</td>
                            <td>30%</td>
                        </tr>
                        <tr>
                            <td>策略资产</td>
                            <td>20%</td>
                        </tr>
                    </tbody>
                </table>
           
            </div>
        </div>

    </div>
    <div class="layui-col-md6">
        <div class="layui-card">
            <div class="layui-card-header">配置方案-调整前</div>
            <div class="layui-card-body">
                <table class="layui-table ">
                    <tbody>
                        <tr>
                            <th colspan="2">标准方案比例饼图</th>
                        </tr>
                        <tr>
                            <td>核心资产</td>
                            <td>50%</td>
                        </tr>
                        <tr>
                            <td>基础资产</td>
                            <td>30%</td>
                        </tr>
                        <tr>
                            <td>策略资产</td>
                            <td>20%</td>
                        </tr>
                    </tbody>
                </table>
       
            </div>
        </div>

    </div>
    <script src="~/Style/layui/layui.js"></script>
    <script>
        layui.use(['element','table','layer'], function () {
            var element = layui.element; //导航的hover效果、二级菜单等功能，需要依赖element模块
            var table = layui.table;
            var layer = layui.layer;
            var $ = layui.$;
            
            $(".adduser").click(function() {
                var sUrl = "/home/adduser";
                layer.open({
                    type: 2,
                    title: "增加",
                 
                    area: ["900px", "600px"],
                    content: sUrl
                  
                });
            });


 
        });

    </script>
</body>
</html>
